import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
//引入路由总文件
import router from './router'
//引入Element-ui样式库
import ElementPlus from 'element-plus'
import "element-plus/dist/index.css"
//引入Element-ui的图标库
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 引入 @opentiny/vue 组件
// import TinyVue from '@opentiny/vue'


// createApp(App).mount('#app')
//创建一个应用
let app = createApp(App);

for(const [key,component] of  Object.entries(ElementPlusIconsVue)) {
    app.component(key,component);
}

//引入路由
app.use(router);
//
app.use(ElementPlus);

// app.use(TinyVue);

//挂载app（id为app的元素或者叫组件）到app中
app.mount('#app');
